package com.example.gesturerecognition.model;

import java.sql.Timestamp;

public class User {
    private int uid; //用户标识id，自增
    private String email;  //用户邮箱，不得重复
    private String username;  //用户名
    private String password;  //用户密码
    private boolean vip;  //是否为vip用户
    private Timestamp vipTime;  //vip到期时间，不是vip时间为null
    private int translationNum;  //普通用户每日限制5次，vip用户设置为null

    @Override
    public String toString() {
        return "User{" +
                "uid=" + uid +
                ", email='" + email + '\'' +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", vip=" + vip +
                ", vipTime=" + vipTime +
                ", translationNum=" + translationNum +
                '}';
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean isVip() {
        return vip;
    }

    public void setVip(boolean vip) {
        this.vip = vip;
    }

    public Timestamp getVipTime() {
        return vipTime;
    }

    public void setVipTime(Timestamp vipTime) {
        this.vipTime = vipTime;
    }

    public int getTranslationNum() {
        return translationNum;
    }

    public void setTranslationNum(int translationNum) {
        this.translationNum = translationNum;
    }
}
